<template>
  <h1>收费项目 - 跟随框组件</h1>
  <f-follow-charges
    ref="tableFollowRef"
    class="w300"
    valueType="object"
    v-model:value="result"
    placeholder="请输入搜索内容C"
    @change="handleChange"
  />
  <pre>{{ result }}</pre>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const tableFollowRef = ref();
const result = ref();
// const result = ref({ name: 'KK', code: 1 });

const handleChange = (e) => {
  console.log('handleChange.1', e);
  result.value = e;
};

const handleInput = () => {
  tableFollowRef.value.search();
}

</script>
<style>
</style>